package iBuyCoolSky.service.call.model;

import java.util.Date;

import iBuyCoolSky.service.call.model.Good;
import iBuyCoolSky.service.call.model.OrderEntryData;


public interface IBuyCoolSkyModel {
	public Double GetDiscount(String agencyName, String type);
	
	public String[] GetTypes();
	
	public String[] GetProducers();
	
	public Good[] GetGoods();
	
	public Good QueryGoodsById(int id);
	
	public Good[] QueryGoodsByName(String[] names);
	
	public Good[] QueryGoodsByType(String[] types);
	
	public Good[] QueryGoodByPrice(double lowerBound, double upperBound);
	
	public Good[] QueryGoodByProducer(String[] producers);
	
	public Good[] QueryGoodByDeliveryTime(Date lowerBound, Date upperBound);
	
	public Good[] QueryGoodByStoreAmount (long lowerBound, long upperBound);
	
	public boolean ProcessOrder (String agencyName, OrderEntryData[] orderEntryDatas);
}
